home
***
CD-ROM
|
disk
|
other
***
search
/
SGI Hot Mix 8
/
Hot Mix 8.iso
/
.all
/
demos
/
MorfDMG
/
RemoveIt2
(
.txt
)
< prev
Wrap
Text File
|
1994-06-22
|
2KB
|
76 lines
#!/bin/csh -f
# This script will remove the INST_PATH directory created by the
# InstallIt2 script.
# Determine INST_PATH from the HOTMIXPATH* file.
#
# First, try /usr/tmp. If not there, try the user's home directory,
# and finally, /tmp. If not in any of these places, ask for the
# name of the path. If the user doesn't know (or forgets) where
# the software was installed, we're SOL. Remove the file after
# using it.
set INST_DIR=iii
set INST_PATH=/usr/local/$INST_DIR
echo " "
echo "About to remove the entire $INST_PATH directory."
echo "Is this OK (y/n)? \c"
set ans=($<)
if ( $ans == 'y' ) then
echo " "
echo "Removing $INST_PATH. Please wait..."
/bin/rm -rf $INST_PATH
/bin/rm /usr/lib/X11/app-defaults/Morf
echo " "
echo "Removal complete."
sleep 3
echo "Press Enter to exit this window... \c"
set a = $<
exit
else
echo "... Bye."
sleep 3
exit
endif
else
echo " "
echo "You do not have permission to remove the $INST_PATH directory."
echo "If you are SURE you want to remove this, you will be asked"
echo "for the root password before proceeding."
echo " "
echo "Continue (y/n)? \c"
set ans=($<)
if ( $ans == 'y' ) then
echo " "
echo "Removing $INST_PATH. Please wait..."
su - root -c "/bin/rm -rf $INST_PATH"
/bin/rm /usr/lib/X11/app-defaults/Morf
echo " "
echo "Removal complete."
echo "Press Enter to exit this window... \c"
set a = $<
else
echo " "
echo "... Bye."
sleep 3
endif
endif
else
echo " "
echo "Could not find the $INST_PATH directory. Please try again."
echo " "
echo "... Bye."
/bin/rm -f /usr/tmp/HOTMIXPATH_$INST_DIR > /dev/null
/bin/rm -f ~/HOTMIXPATH_$INST_DIR > /dev/null
/bin/rm -f /tmp/HOTMIXPATH_$INST_DIR > /dev/null
sleep 10
endif
echo "Press Enter to exit this window... \c"
set a = $<
exit 0